package com.pipi.biyesheji.dao.mapper;

import com.pipi.biyesheji.dao.model.RolePermissionDO;
import com.pipi.biyesheji.dao.query.RolePermissionQuery;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
/**
 * MyBatis Mapper for RolePermission.
 */
 @Mapper
 @Repository
public interface RolePermissionMapper {
    /**
     * query count by query condition.
     */
    int countByQuery(RolePermissionQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(RolePermissionQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(Long id);

    /**
     * insert selective.
     */
    int insertSelective(RolePermissionDO record);

    /**
     * select by query condition.
     */
    List<RolePermissionDO> selectByQuery(RolePermissionQuery query);

    /**
     * select by primary key.
     */
    RolePermissionDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective(@Param("record") RolePermissionDO record, @Param("query") RolePermissionQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(@Param("record") RolePermissionDO record, @Param("query") RolePermissionQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(RolePermissionDO record);
}